import request from "@/utils/request";

// export const selectAllCommentsByGameId = (id) =>{
//     return request.get('/api/comment/selectAllCommentsByGameId/'+id)
// }

export const getCategories = ()=>{
    return request.get('/categorys')
}

export const saveCategory = (category)=>{
    return request.post('/categorys/addCategory',category)
}

export const getCategroyVoById = (id)=>{
    let findCategoryPo = {
        id:id
    }
    return request.post('/categorys/findCategoryById',findCategoryPo)
}

export const updateCategory = (category) =>{
    return request.post('/categorys/updateCategoryById',category)
}

export const deleteCategoryById = (id) =>{
    let deleteCategoryPo = {
        id:id
    }
    
    return request.post('/categorys/deleteCategoryById',deleteCategoryPo)
}


